﻿namespace HauWei.RepUtils
{
    using DevExpress.XtraEditors;
    using DevExpress.XtraReports.UI;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Runtime.CompilerServices;

    public class ModuleControl : XtraUserControl
    {
        protected DataSet fDs;
        protected XtraReport fReport;

        private string str;

        public virtual void Activate()
        {
            DXDisplayNameAttribute.UseResourceManager = true;
            this.Report = this.CreateReport();
        }

        protected virtual XtraReport CreateReport()
        {
            return null;
        }

        public string FileName
        {
    
            get
            {
                return this.str;
            }
    
            set
            {
                this.str = value;
            }
        }

        public DataSet RepDs
        {
            get
            {
                return this.fDs;
            }
            set
            {
                this.fDs = value;
            }
        }

        public virtual XtraReport Report
        {
            get
            {
                return this.fReport;
            }
            set
            {
                this.fReport = value;
            }
        }
    }
}

